import App from './App'

import sunui from './utils/sun.js';
import antiThrottling from '@/utils/antiThrottling.js';
import Api from './api.js';
import Http from './utils/http.js';
import date from './utils/date.js';

import sunUiPopup from './components/sunui-popup/sunui-popup.vue';
import sunuiUpimg1 from '@/components/sunui-upimg1/sunui-upimg1.vue';
import sunuiUpimg2 from '@/components/sunui-upimg1/sunui-upimg2.vue';
import Mixin from '@/components/mescroll-uni/mescroll-mixins.js';
import MescrollBody from '@/components/mescroll-uni/mescroll-body.vue';
import MescrollUni from '@/components/mescroll-uni/mescroll-uni.vue';
import MescrollEmpty from '@/components/mescroll-uni/components/mescroll-empty.vue';
import picker from '@/components/lb-picker/index.vue';
import LotteryDraw from '@/components/SJ-LotteryDraw/SJ-LotteryDraw.vue';
import mosowe from '@/components/mosowe-number-run/mosowe-number-run.vue';

Vue.mixin(Mixin);
Vue.component('mescroll-uni', MescrollUni);
Vue.component('mescroll-body', MescrollBody);
Vue.component('mescroll-empty', MescrollEmpty);
Vue.component('sunui-upimg1', sunuiUpimg1);
Vue.component('sunui-upimg2', sunuiUpimg2);
Vue.component('sunui-popup', sunUiPopup);
Vue.component('lb-picker', picker);
Vue.component('LotteryDraw', LotteryDraw);
Vue.component('mosowe-number-run', mosowe);

Vue.prototype.$http = Http;
Vue.prototype.$api = Api;
Vue.prototype.$sun = sunui;
Vue.prototype.$date = date;
Vue.prototype.$at = antiThrottling;





// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif